#pragma once
#ifndef ENTITY_MESH_H
#define ENTITY_MESH_H

#include "Entity.h"
#include "mesh.h"
#include "texture.h"
#include "shader.h"

class EntityMesh :	public Entity
{
public:
	Mesh* mesh;
	Texture* texture;
	Shader* shader;

	EntityMesh(void);
	~EntityMesh(void);

	virtual void render();
	bool collisions(Mesh* collides);
	bool rayCollision(Vector3 ray_origin, Vector3 ray_direction);
	bool segmentCollision(Vector3 ray_origin, Vector3 ray_direction, float t0, float t1);

};

#endif
